﻿using System.Text;

namespace Toolkit.Lib.iOSModels;

public class SignModel
{
    public string UserName { get; set; }

    public string UserId { get; set; }

    public string Academy { get; set; }
    public string PoliticalLandscape { get; set; }
    public string Gender { get; set; }
    public string ClassName { get; set; }
    public string PhoneNum { get; set; }

    public LoginModel ToLogin() => new() { Id = UserId, Name = UserName };

    public override string ToString()
    {
        return $"{UserName},{UserId},{Gender},{Academy},{PoliticalLandscape},{ClassName},{PhoneNum}";
    }
}

public static class SignRecord
{
    public static readonly string[] ChooseType =
    {
        "姓名",
        "学号",
        "学院",
        "政治面貌",
        "性别",
        "班级",
        "手机号码"
    };
    
    public static readonly string[] Academies =
    {
        "信息与控制工程学院",
        "理学院",
        "机电学院",
        "建筑学院",
        "机电工程学院",
        "管理学院",
        "土木工程学院",
        "环境与市政工程学院",
        "建筑设备科学与工程学院",
        "材料科学与工程学院",
        "冶金工程学院",
        "资源工程学院",
        "文学院",
        "艺术学院",
        "马克思主义学院",
        "公共管理学院",
        "化学与化工学院",
        "体育学院",
        "安德学院",
        "未来技术学院"
    };

    public static readonly string[] PoliticalLandscapes =
    {
        "群众",
        "共青团员",
        "中共党员",
        "中共预备党员"
    };

    public static readonly string[] Genders = { "男", "女" };

    public static readonly Dictionary<string, string> IdentityDictionary = new()
    {
        { "Founder", "创始人" },
        { "President", "社长,副社长,秘书长" },
        { "TechnologyMinister", "科技部部长/副部长" },
        { "PracticalMinister", "实践交流部部长/副部长" },
        { "PracticalMember", "实践交流部成员" },
        { "NewMediaMinister", "新媒体部部长/副部长" },
        { "NewMediaMember", "新媒体部成员" },
        { "TechnologyMember", "科技部成员" },
        { "Member", "普通成员" }
    };
}